﻿@model InfoLogic.Models.Product

@{
    ViewBag.Title = "Add a Product";
}


@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.productName)*@
            Product Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.productName)
            @Html.ValidationMessageFor(model => model.productName)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.purchasePrice)*@
            Purchase Price
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.purchasePrice)
            @Html.ValidationMessageFor(model => model.purchasePrice)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.sellingPrice)*@
            Selling Price
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sellingPrice)
            @Html.ValidationMessageFor(model => model.sellingPrice)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.quantityOnHand)*@
            Quantity On Hand
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.quantityOnHand)
            @Html.ValidationMessageFor(model => model.quantityOnHand)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
